<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>伪等高布局</title>
		<link rel="stylesheet" type="text/css" href="css/reset-min.css"/>
		<style type="text/css">
			.clearfix:before,
			.clearfix:after{
				content: "";
				display: table;
				clear: both;
			}
			.clearfix{
				zoom: 1;
			}
			
			.box1{
				width: 700px;
				border: 1px solid;
				/* 位置居中 */
				margin: 0px auto;
				/* 内容裁剪，让内容设置的padding肉眼看不到，就形成了伪等高 */
				overflow: hidden;
			}
			.box2{
				width: 200px;
				background-color: #008000;
				/* 开启浮动 */
				float: left;
				/* 设置足够大的底部内边距，一般设置1万px，这已经足够高了 */
				padding-bottom: 10000px;
				/* 设置底部margin，调整边界 */
				margin-bottom: -10000px;
			}
			.box3{
				width: 500px;
				background-color: #00FFFF;
				float: left;
				padding-bottom: 10000px;
				margin-bottom: -10000px;
			}
		</style>
	</head>
	<body>
		<div class="box1 clearfix">
			<div class="box2">
				left<br />
				left<br />
				left<br />
				left<br />
				left<br />
				left<br />
				left<br />
			</div>
			<div class="box3">
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
				right<br />
			</div>
		</div>
		
	</body>
</html>
